<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../Css/addRefund.css">
    <link rel="stylesheet" href="../Css/btn.css">
    <link rel="stylesheet" href="http://at.alicdn.com/t/c/font_3911564_ynvs5zhem7p.css">
</head>

<body>
    <div class="rightmain1">
        <div>
            <div>回款详情</div>
            <div>
                <button class="btn1"><a href="../refund/reManage.html"><span class="iconfont icon-export"></span>返回</a>
                </button>
            </div>
        </div>
    </div>
    <div class="jibenxingxi">
        <div><span class="iconfont icon-liebiao spanhk"></span>回款信息</div>
        <form action="">
            <ul>
                <li><span class="ispanWidth">回款日期：</span><input value="" readonly="true" id="payment_day2">
                </li>
                <li><span class="ispanWidth">客户名称：</span><input type="text" value="" readonly="true" id="Client_name2">
                </li>
                <li><span class="ispanWidth">合同编号：</span><input type="text" value="" readonly="true"
                        id="contract_number2"></li>
                <li><span class="ispanWidth">回款金额（万元）：</span><input type="text" value="" readonly="true"
                        id="payment_amount2"></li>
                <li><span class="ispanWidth">回款期次：</span><input type="text" value="" readonly="true"
                        id="payment_period2"></li>
                <li><span class="ispanWidth">付款方式：</span><input type="text" value="" readonly="true"
                        id="payment_method2"></li>
                <li><span class="ispanWidth">银行：</span><input type="text" value="" readonly="true" id="bank2"></li>
                <li><span class="ispanWidth">账号：</span><input type="text" value="" readonly="true" id="account2"></li>
                <li><span class="ispanWidth">是否逾期：</span><input type="text" value="" readonly="true" id="isOverdue2">
                </li>
                <li><span class="ispanWidth">逾期天数：</span><input type="text" value="" readonly="true" id="Overdue2"></li>
                <li><span class="ispanWidth">备注：</span><input type="text" value="" readonly="true" id="note2"></li>
            </ul>
        </form>
    </div>


    <script>









        cxcontract();




        function cxcontract() {
            console.log(1);
            let index;
            contract.forEach(e => {
                if (e.id == idtzm) {
                    index = e.id;
                }
            });

            $("#payment_day2").val(contract[index - 1].payment_day);
            $("#Client_name2").val(contract[index - 1].Client_name);
            $("#contract_number2").val(contract[index - 1].contract_number);
            $("#payment_amount2").val(contract[index - 1].payment_amount);
            $("#payment_period2").val(contract[index - 1].payment_period);
            $("#contract_amount2").val(contract[index - 1].contract_amount);
            $("#payment_period2").val(contract[index - 1].payment_period);
            // $("#contract_fj1").val(connection[index].contract_fj);
            $("#payment_method2").val(contract[index - 1].payment_method);
            $("#account2").val(contract[index - 1].account);
            $("#isOverdue2").val(contract[index - 1].isOverdue);
            $("#Overdue2").val(contract[index - 1].Overdue);
            $("#note2").val(contract[index - 1].note);





        }


    </script>




</body>

</html>